package com.example.controller.web;


import com.example.common.Result;
import com.example.service.NoticesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("webNoticesController")
@RequestMapping("web/notices")
public class NoticesController {

    @Autowired
    private NoticesService noticesService;

    @GetMapping("/list")
    public Result listDisplayedNotices() {
        return Result.success(noticesService.listDisplayedNotices());
    }
}
